<include file="Common/Api/header_new" />
<div class="container-fluid">
<include file="Common/Api/left_menu_new" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/webuploader.css">

  <div class="affix container_right"> 
  
    <div class="title"><a>生成API</a>&nbsp;&gt;&nbsp;<a>数据库</a>&nbsp;&gt;&nbsp;<a>数据类型</a>&nbsp;&gt;&nbsp;输入条件</div>
    
    <div class="container csvadd">
      <div class="bow color-999">
        <!-- <button type="button" id="webupload_picker" class="btn btn-primary csvadd-btn-margin text-left" data-toggle="modal" data-target=".bs-example-modal-detail">上传文本</button>gebilaowang.csv 已上传 -->
        <div type="button" id="webupload_picker" class="btn btn-primary csvadd-btn-margin text-left">上传文本</div>
        <div id="thelist" class="uploader-list _upload_span" style="margin-top:25px;">
          <p class="_file_name">{$info.name}</p> 已上传
          <input type="hidden" value="{$info.name}" class="_upload_save_name" name="source_file_name" />
          <input type="hidden" value="{$info.save_file_name}" class="_upload_file_name" name="save_file_name" />
        </div>
        <div class="_upload_file_error hide">请上传文件</div>
      </div>
      <div>
          <div class="form-group">
            <label for="one" class="csvadd-text">列分隔符:</label>
            <input type="text" id="one" class="csvadd-input form-control _webupload_fiel_commas" placeholder="列分隔符" value="{$info['import_condition']['commas']}">
            <label class="csvadd-text hide">列分隔符不能为空</label>
          </div>
          <div class="form-group">
            <label for="two" class="csvadd-text">封闭符:</label>
            <input type="text" id="two" class="csvadd-input form-control _close_sign" placeholder="封闭符" value="{$info['import_condition']['closesign']}">
            <label class="csvadd-text hide">封闭符不能为空</label>
          </div>
          <div class="form-group">
            <label for="three" class="csvadd-text">NIO缓存大小:</label>
            <input type="text" id="three" class="csvadd-input form-control _webupload_nio" placeholder="NIO缓存大小" value="{$info['import_condition']['nio']}">
            <label class="csvadd-text hide">NIO缓存大小不能为空</label>
          </div>
          <div class="form-group">
            <label for="four" class="csvadd-text">行号字段:</label>
            <input type="text" id="four" class="csvadd-input form-control _line_fields" placeholder="行号字段" value="{$info['import_condition']['line_fields']}">
            <label class="csvadd-text hide">文件编码不能为空</label>
          </div>
          <div class="form-group">
            <label class="csvadd-text">文件编码:</label>
            <div class="btn-group">
      			  <button class="btn btn-default dropdown-toggle csvadd-select" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
      			    <b class="_file_coding_text">{$info['import_condition']['file_coding']}</b>
      			    <span class="caret text-right"></span>
      			  </button>
      			  <ul class="dropdown-menu _dropdown_menu" aria-labelledby="dropdownMenu1" style="width:100%">
      			    <li role="presentation" data-value="UTF-8"><a href="#">UTF—8</a></li>
      			    <li role="presentation" data-value="GBK"><a href="#">GBK</a></li>
      			    <li role="presentation" data-value="GB2312"><a href="#">GB2312</a></li>
      			  </ul>
              <input type="hidden" value="" class="_file_code_value" />
      			</div>   
          </div>
          <div class="form-group">
            <label class="csvadd-text">包含列行头:</label>
              <div class="btn-group" style="margin-left:20px">
    
                <!-- Inline Radios -->
                <label class="radio inline">
                  <input type="radio" value="1" name="group-top" <if condition="$info['import_condition']['line_header'] eq 1">checked="checked"</if> >是
                </label>
                <label class="radio inline">
                  <input type="radio" value="0" name="group-top" <if condition="$info['import_condition']['line_header'] eq 0">checked="checked"</if>>否
                </label>
              </div>
          </div>
          <div class="form-group">
            <label class="csvadd-text">字段中有回车换行:</label>
              <div class="btn-group" style="margin-left:20px">
    
                <!-- Inline Radios -->
                <label class="radio inline">
                  <input type="radio" value="1" name="group-bow" <if condition="$info['import_condition']['enter_string'] eq 1">checked="checked"</if>>是
                </label>
                <label class="radio inline">
                  <input type="radio" value="0" name="group-bow" <if condition="$info['import_condition']['enter_string'] eq 0">checked="checked"</if>>否
                </label>
              </div>
          </div>
          <button type="button"  class="btn btn-primary csvadd-btn-margin text-left _next_step">下一步</button>
       </div>
    </div>
    
    
  </div>
</div>

<input type="hidden" class="_file_type" value="{$type}" />
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/webuploader.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/home/dist/drag/tab.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/editimportfile.js"></script>
</body>
</html>
